package com.framework.component.extension.exception;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ExtensionException extends RuntimeException {

    private String errorCode;

    public ExtensionException(String errorMessage) {
        super(errorMessage);
    }

    public ExtensionException(String errorCode, String errorMessage) {
        super(errorMessage);
        this.errorCode = errorCode;
    }

    public ExtensionException(String errorMessage, Throwable e) {
        super(errorMessage, e);
    }

    public ExtensionException(String errorCode, String errorMessage, Throwable e) {
        super(errorMessage, e);
        this.errorCode = errorCode;
    }

}
